/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package TimeRecording.TimeClockServer.messages.tx;

import TimeRecording.TimeClockServer.messages.ClockMessage;
import java.util.Date;
import java.util.Formatter;

/**
 *
 * @author david
 */
public class SetTimeMessage extends ClockMessage {

    private final static String MSG_FORMAT = "[HDR]TS00%1$s[RS]";

    public SetTimeMessage(Date date) {
        super(new Formatter().format(MSG_FORMAT,
                DATE_FORMATTER.format(date)).toString());
    }
}
